/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-1-18 上午9:58 Created by dwzhang
 */
package com.jade.modules.cms;

import com.jade.framework.base.ErrorConstants;

/**
 * CMS常量定义。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-1-18 上午9:58
 */
public interface CmsConstants extends ErrorConstants
{
    //同上级
    public static final int FLAG_INHERIT = 9;
    public static final int FLAG_YES = 1;
    public static final int FLAG_NO = 0;

    public static final String CONTENT_FILE_TYPE = "content";
    public static final String CONTENT_FILE_CT = "text/html";
    public static final String CONTENT_FILE_ENCODING = "UTF-8";
    //模版中有效的参数

    public static String ERR_TEMPLATE_NAME_CONFLICT = "err.module.cms.template.name_conflict";
    public static String ERR_CATEGORY_NAME_CONFLICT = "err.module.cms.category.name_conflict";
    public static String ERR_CONTENT_INVALID_STATUS = "err.module.cms.content.invalid_status";
    public static String ERR_CONTENT_EMPTY_UPDATE = "err.module.cms.content.empty_update";
    public static String ERR_CONTENT_NOT_EXISTED = "err.module.cms.content.not_existed";
    public static String ERR_TOPIC_NAME_CONFLICT = "err.module.cms.topic.name_conflict";
}
